<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--action设置提交地址
    placeholder占位文本
    maxlength最大长度
    value默认值
    readonly只读
    -->
<h1>注册页面</h1>
<form action="">
<!--  name是所有控键必须添加的属性-->
    用户名:<input type="text" name="username" placeholder="请输入用户名" maxlength="6"
        value="蔡徐坤" readonly><br>
    密码:<input type="password" name="password" placeholder="请输入密码"><br>
     <!-- radio单选框 -->
    性别:<input type="radio" name="hobby" checked value="m" id="r1"><label for="r1">男</label>
      <input type="radio" name="hobby" value="w">女<br>
    兴趣爱好:<input type="checkbox" name="hobby" value="cy">抽烟
        <input type="checkbox" name="hobby" value="hj" checked>喝酒
        <input type="checkbox" name="hobby" value="tt">烫头<br>
    生日:<input type="date" name="birthdy"><br>
    照片:<input type="file" name="piv"><br>
    <!--selected设置默认的-->
    所在地:<select>
    <option>广西</option>
    <option>南宁</option>
    <option selected>贺州</option>
    <option>桂林</option>
    </select>
    <br>
    <input type="submit" value="注册">
    <input type="reset">
    <input type="button" value="自定义">
    <hr>

</form>
</body>
</html>